Skip to content

[FIX] l10n_ar_tax: fix payment_total computation with withholding#1186

Open
cav-adhoc wants to merge 1 commit intoingadhoc:18.0from
adhoc-dev:18.0-h-98310-cav
Open

[FIX] l10n_ar_tax: fix payment_total computation with withholding#1186
cav-adhoc wants to merge 1 commit intoingadhoc:18.0from
adhoc-dev:18.0-h-98310-cav

Conversation

@cav-adhoc
Copy link
Copy Markdown
Contributor

Ensure that the withholding amounts are always added as positive values in the payment total calculation by updating the logic in AccountPayment._compute_payment_total. This fixes the use case where a customer payment is in send and the withholding amounts were negative.

@roboadhoc
Copy link
Copy Markdown
Contributor

Pull request status dashboard

Added a condition to consider the payment_type when computing the payment_total field in account.payment,
to avoid adding the withholding amount twice when the payment is of type 'outbound'.
@cav-adhoc cav-adhoc changed the title [FIX] l10n_ar_tax: absolute value for withholdings in payment total [FIX] l10n_ar_tax: fix payment_total computation with withholding Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants